package com.sudo.dao.admin.entity;

import com.sudo.dao.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "sys_role")
@EqualsAndHashCode(callSuper = true)
public class SysRole extends BaseEntity {
    /**
     * 乐观锁
     */
    @Id
    private Integer id;

    /**
     * 角色名
     */
    @Column(name = "role_name")
    private String roleName;

    /**
     * 角色代码 创建后不能修改
     */
    @Column(name = "role_code")
    private String roleCode;

    /**
     * 角色状态
     */
    private String status;

    /**
     * 备注
     */
    private String note;

    public interface Field{
        String id = "id";
        String roleName = "roleName";
        String roleCode = "roleCode";
        String status = "status";
        String note = "note";
    }
}
